/**
 * @file
 * @author  michal.nezerka@gmail.com
 */

#ifndef WWLATLONDLG_H
#define WWLATLONDLG_H

#include <wx/button.h>
#include <wx/statline.h>

#include "app.h"

namespace wildwood
{

class LatLonDlg: public wxDialog
{
public:

    LatLonDlg(wxDialog *dlg, const wxString& title, const double lat = 0, const double lon = 0);
    ~LatLonDlg();
    bool TransferDataToWindow();
    bool TransferDataFromWindow();
    double getLat() { return mLat; };
    double getLon() { return mLon; }

private:
    double mLat;
    double mLon;

    void OnClose(wxCloseEvent& event);

    wxPanel* CreateGeneralPage(wxWindow* parent);

    DECLARE_EVENT_TABLE()
};

} // namespace

#endif // WWLATLON_H

